<?php 
namespace Models;
/**
 * 商品收藏
 * @package Models
 * @author 江羿平<hugcolin@163.com>
 */
class Favorite extends Model
{
	protected $_table = 'favorites';

	protected $_filter = FALSE;

	protected $_primekey = 'id';

	protected $_belongs = [
		'product' => [
			'class' => Product::Class,
			'foreign' => 'id',
			'belongs_key' => 'product_id',
		]
	];
}
?>